package com.gonsin.ta.logic.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.ViewResolverRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class TaWebMvcConfig implements WebMvcConfigurer {

    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/tinycli/**").addResourceLocations("classpath:\\tinycli\\");
        registry.addResourceHandler("/tinycli.html").addResourceLocations("classpath:\\tinycli\\index.html");
    }
}
